<!--<foreach name="Ms" item="itm">
{$itm.id}&nbsp;|&nbsp;{$itm.name}&nbsp;|&nbsp;{$itm.number}&nbsp;|&nbsp;{$itm.create_time|date='Y-m-d H:i:s',###}&nbsp;|&nbsp;<br>
</foreach>
{:$page}-->



<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title></title>

    <!-- Bootstrap -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    
<table class="table">
	<thead>
		<tr>
			<th>#</th>
			<th>班级</th>
			<th>人数</th>
			<th>创建时间</th>
		</tr>
	</thead>
	<tbody>
		<foreach name="Ms" item="itm">
			<tr>
				<th>{$itm.id}</th>
				<td>{$itm.name}</td>
				<td>{$itm.number}</td>
				<td>{$itm.create_time|date='Y-m-d H:i:s',###}</td>
				<td>
					<a href="{:U('Student/list_by_class_id',array('class_id'=>$itm['id']))}">学生列表</a>&nbsp;|&nbsp; 
					<a href="{:U('Student/add',array('class_id'=>$itm['id']))}">学生注册</a>&nbsp;|&nbsp; 
					<a href="{:U('Class/edit',array('id'=>$itm['id']))}">修改</a>&nbsp;|&nbsp; 
					<a href="{:U('Class/delete',array('id'=>$itm['id']))}">删除</a>
				</td>
			</tr>
		</foreach>
	</tbody>
</table>
{:$page}
  </body>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</html>